Introduction

Organisms use information collected in the environment to survive, find food and reproduce. A common challenge for animals is the visual representation of entities (e.g. predators, refuges, food items, conspecifics) that may differ in number, size or both. In the last two decades accumulating evidence has revealed that several taxa are able to discriminate between different quantities using an Approximate Number System (ANS, sometimes also dubbed Analogue Magnitude System) that would operate in an imprecise manner and would be ratio-dependent according to Weber’s law, which means that the accuracy in the discrimination between two stimuli would be a function of the ratio between their numerousness (Gallistel and Gelman 2000; Feigenson et al. 2004; Kruske et al. 2010; reviews in Vallortigara 2014, 2017, 2018). This has been reported for mammals (Vonk and Beran 2012; Vonk et al. 2014), birds (Pepperberg 2006; Bogale et al. 2014; Bertamini et al. 2018; Rugani et al. 2008, 2009, 2010, 2011, 2013a, b, 2014, 2016), amphibians (Uller et al. 2003; Stancher et al. 2015; Lucon-Xiccato et al. 2018), reptiles (Miletto Petrazzini et al. 2017, 2018; Gazzola et al. 2018a, b), fish (Buckingham et al. 2007; Agrillo et al. 2008, 2011; Stancher et al. 2013; Potrich et al. 2015; Forsatkar et al. 2016), and invertebrates (Dacke and Srinivasan 2008; Carazo et al. 2009; Nelson and Jackson 2012; Howard et al. 2018).

The ability to properly evaluate differences among either discrete or continuous quantities is considered a fitness-related trait which can potentially benefit the organisms in many situations. According to optimal foraging theory (MacArthur and Pianka 1966; Stephens and Krebs 1986) animals tend to maximize their net energy intake, implying that, to choose the most profitable food source, they should be able to discriminate the number or size of food items (Cresswell and Quinn 2004; Kruske et al. 2010; Bogale et al. 2014; Lucon-Xiccato et al. 2015; Stancher et al. 2015; Cross and Jackson 2017). Furthermore, the ability of discriminating between quantities may allow to lower resource competition by choosing food patches hosting less conspecifics (Forsman et al. 2008). American coots (Fulica americana) have been demonstrated to count their own eggs to decide when to stop further development of maturing egg follicles (Lyon 2003), while tree frogs (Hyla intermedia) can discriminate the height and number of grass clumps when choosing for microhabitats offering greater protection and more resources (Lucon-Xiccato et al. 2018). Finally, social groups may assess numbers of potential opponents before engaging in aggressive interactions (Benson-Amram et al. 2011).

For animals living in groups, group size discrimination may play a major role in setting the trade-off between the costs and benefits of membership. Although costs, such as competition for resources and risk of being parasitized, tend to increase with group size (Krause and Ruxton 2002), aggregation has been reported to improve the efficiency of foraging, social learning and vigilance against predators (Pitcher and Parrish 1993; Krause and Ruxton 2002). Avoidance of predation is probably the major benefit of group living: as both dilution of the probability of getting caught and vigilance increase with group size, the choice of which group to join is expected to have major effects on the fitness of individuals (Cresswell 1994). In many group living species, attraction towards conspecifics is enhanced by predation risk (Lima and Dill 1990; Pitcher and Parrish 1993; Krause and Ruxton 2002). A large amount of studies is available for fish, which tend to aggregate under a perceived threat (Magurran and Pitcher 1987; Krause et al. 1998; Nordell 1998; Hoare et al. 2004; Gómez-Laplaza and Gerlai 2011), using both numerical information and overall density or activity to choose the largest available shoal (Agrillo et al. 2008; Bisazza et al. 2010).

In contrast to most fish, adult amphibians show little evidence of a true shoaling behaviour and salamander larvae are often aggressive or cannibalistic toward other larvae (Wells 2007). However, several anuran tadpoles show different degrees of social aggregation, sociality being apparently based on kinship (Blaustein and O’Hara 1986; Blaustein and Walls 1995). While kin recognition is mainly mediated by chemical cues (Blaustein and O’Hara 1982), to our knowledge experimental studies on the role played by visual cues in group formation are still lacking. Under perceived predation risk, tadpoles usually react by changing the level of activity according to the ratio between the amount of predatory cue and conspecific density (Van Buskirk et al. 2011; Gazzola et al. 2018a, b), but there is also some evidence that larval amphibians may aggregate in response to predation. As an example, high predation risk induces tadpoles of both Aglyptodactylus securifer (Mantellidae) and Dyscophus insularis (Microhylidae) to form groups (Glos et al. 2007). Aggregation is induced by either mechanical stimuli (e.g. movements of aquatic predators) or chemical alarm cues from conspecifics (Spieler and Linsenmair 1999) and may be effective in lowering the number of attacks suffered by individual tadpoles by predators (Watt et al. 1997).

Here we explored tadpoles’ ability to discriminate among different numerical quantities (as opposed to non-numerical continuous traits, e.g. total surface area) either in the presence or absence of predatory cues. We applied a 4 × 2 factorial design, combining each of four numerical combinations of conspecific tadpoles with either chemical cues or well water. As interspecific variation in tendencies to aggregate may result in different numerical (quantitative) abilities, that is more social tadpoles may have evolved more precise discriminations of quantities, tests were carried out on both green toad (Bufotes balearicus) and edible frog (Pelophylax esculentus) tadpoles. As other bufonids (Waldman 1991; Blaustein and Waldman 1992), the green toad forms large and persistent social groups and tend to aggregate more under predation risk (Stav et al. 2007). In contrast, most ranid (Ranidae) tadpoles are solitary or form temporary aggregations with little evidence of social behaviour or spatial organization (O’Hara and Blaustein 1988; Griffiths and Foster 1998; Wells 2007). Thus, we expected green toads to select the larger groups, particularly when tadpoles were exposed to predatory cues.

Materials and methods

Subjects

We collected three green toad clutches and ca. 300 edible frog tadpoles from two different ponds inside the campus of the University of Pavia (Lombardy region, Northern Italy). Both species were caught by a hand net on the same day. Animals were immediately transported to the laboratory and maintained in 60 l opaque plastic containers. We provided all containers with aged tap water and aerators. Eggs and tadpoles were kept on a natural photoperiod at 19 ± 1.5 °C, and every day all containers were provided with the same amount of rabbit food throughout the study period. Both green toad and edible frog tadpoles were selected to obtain, for each species, a focal-group and a stimulus-group formed by individuals of similar size. Gosner’s developmental stage ranged between 26 and 28 for green toads and 27–32 for edible frogs, respectively. During the experiments, edible frog tadpoles were considerably larger than those of green toads (mean total length ± SEM: 26.2 ± 0.8 mm vs. 14.2 ± 0.5 mm, N = 20).

Predators, namely eight dragonfly Anax imperator larvae, were collected in a small water body in the University campus. Dragonfly larvae were individually maintained in 0.8 l tubs, filled with 0.6 l of aged tap water, and provided with leaves to offer cover and a substrate to cling to. One hour before the onset of each daily session of the experiments, each predator was fed with tadpoles of the species that was tested at that stage. The experiment was performed in May–June 2018. Edible frog tadpoles were maintained in the laboratory for 48 h before the onset of the experiment.

Experimental design and apparatus

Our experimental apparatus consisted of an opaque plastic container (30 × 20 × 5 cm), filled with 1 l of aged tap water, and two transparent plastic boxes (9.4 × 6.4 × 4.8 cm), containing visual stimuli. The arena was divided into three equal zones (10 × 20 × 5 cm; Fig. 1) and the two small plastic boxes were positioned along the short sides of the arena in a symmetrical position, paying attention to make them properly adhere to the walls (Fig. 1). In this way, the two zones surrounding the visual stimuli were separated by a central, “neutral” zone. After the positioning of the plastic boxes, water depth in the arena was 2.5 cm.

Fig. 1
figure 1

Schematic representation of the experimental design. Arrows indicate the corners where the olfactory cue was injected

The experiment joined a visual stimulus, represented by four numerical combinations (1 vs. 4, 4 vs. 8, 4 vs. 6, 3 vs. 4), with an olfactory stimulus (chemical cues vs. well water). The numerical combinations corresponded to a range of increasing ratios, 0.25, 0.5, 0.67, 0.75, respectively, with intermediate ratios testing tadpole ability to discriminate large quantities (> 4). For each trial, the chemical stimulus was obtained by collecting a total of 20 ml of conditioned water from four randomly selected tubs hosting tadpole-fed predators, and thus presumably consisted of a mixture of predator kairomones, prey-borne cues and digestion-released cues (Hettyey et al. 2015). These cues have been demonstrated to trigger behavioural anti-predator defenses in tadpoles (Chivers and Smith 1998; Relyea 2001; Van Buskirk 2001; Kishida and Nishimura 2005). Generally, the time an individual spends active is inversely proportional to the amount of cue provided (Van Buskirk and Arioli 2002; Bennett et al. 2013; Gazzola et al. 2018a, b). Focal tadpoles were allowed to perceive only the predatory cue, while the diffusion of cues released by conspecifics was prevented by the use of plastic boxes.

After having randomly confined the required number of stimulus tadpoles inside the transparent plastic boxes, the focal tadpole was positioned in the center of the arena within a cylindrical fiberglass net (5 cm in diameter). After 5 min of acclimation, we added either predatory cues or well water in two opposite corners of the arena (10 ml for each corner; Fig. 1), to provide symmetrical chemical stimuli with respect to the visual ones. After further 5 min, the fiberglass net was gently raised and the focal tadpole released. Group preference was then recorded over a 10-min period by a digital camera (Canon Legria) hanged up 1 m above a group of four arenas (one per each numerical combination, in randomized order) arranged as to easily cover a 60 × 40 cm large area. We inserted a 1 m high cardboard barrier all around the arenas to prevent disturbance during the recordings. After each trial, the experimental arenas and all plastic boxes were carefully washed before being re-filled with tap water. Both the position of the visual stimuli and the corners where chemical stimulus were added varied randomly during the experiment.

All trials were carried out from 10:00 a.m. to 02:00 p.m., when tadpoles are more active and gregarious (Bisazza et al. 2002). As cues of predation have been observed to still trigger strong behavioral responses after 36–48 h of aging in well water (Van Buskirk et al. 2014), we were confident that the duration of each session did not affect the strength of the stimulus. Each focal tadpole was tested only once and none of the tadpoles used as visual stimulus was used as focal individual. Overall, we tested 20 tadpoles for each combination “visual × chemical stimuli”, for a total of 160 focal tadpoles for each species.

Behavioural responses and statistical procedures

The total amount of time the focal tadpole spent inside each zone was quantified over a period of 10 min. A preference index was calculated as the proportion of time each tadpole spent close to the larger group with respect to the total time spent close to any of the two groups (i.e. within the two zones containing the visual stimuli). Tadpole was considered to have chosen a specific visual stimulus when its whole body had crossed the line which delimited the corresponding zone. As data were not normally distributed, a non-parametric one-sample signed-rank Wilcoxon test was used to compare this proportion against a chance value of 0.5 (i.e. random choice).

To uncover the effect of predatory cues on the level of activity of focal tadpoles, we applied a generalized linear model (GLM) with negative binomial distribution, with the total number of crossed lines (i.e. the number of movements from one zone to a neighboring one over a 10 min period) as response variable and the chemical treatment (water vs. predatory cues) as fixed factor. We then run a GLM for each species, with treatment as a single fixed factor. We also explored the effect of perceived predation risk on the average length of the time intervals spent inside the zone containing either the larger or the smaller group (hereafter permanence time) before moving out. Permanence time was used as the response variable in a general linear model (GLM) with a negative binomial distribution. Before the analyses, we removed all trials during which focal tadpoles did not move for the whole duration of the test (600 s). Statistics were performed using the R 3.5.1 package (R-Development-Core-Team 2018). We used two-tailed probabilities with alpha levels of 0.05 and, unless otherwise stated, results are reported as means ± SEM.

Results

Green toad tadpoles showed a significant preference for the groups composed of 4 individuals over a single conspecific, both with (V = 126, P = 0.020) and without (V = 99, P = 0.028; Fig. 2) predatory cue. No significant preference was found for all the other numerical contrasts, either with or without predatory cues (highest difference: V = 108, P = 0.14). Edible frog tadpoles showed a significant preference for the smaller group in the combinations 1 vs. 4 and 3 vs. 4 without predatory cue (V = 58, P = 0.047 and V = 27, P = 0.003, respectively), but they did not show any preference when exposed to chemical cues (V = 93, P = 0.760 and V = 97, P = 0.78, respectively; Fig. 2). No significant preference was found for contrasts with quantities larger than 4, either with or without predatory cues (highest difference: V = 101, P = 0.267).

Fig. 2
figure 2

Proportion of time tadpoles spent near the larger group (mean ± SEM) for both species and all numerical contrasts. The dashed line represents chance value for choice (i.e. 0.5), white dots represent the control group and black dots predator-exposed group (*P < 0.05)

Chemical treatment (χ2 = 34.90, P < 0.0001) and species (χ2 = 4.90, P = 0.026) had a significant effect on the activity level of focal tadpoles, while no relevant interaction was detected (treatment × species: χ2 = 1.51, P = 0.21). Both species responded to predatory cues by significantly reducing the number of movements from zone to zone in comparison to controls (green toad: estimate = − 0.55 ± 0.13, z = − 4.19, P < 0.0001; edible frog: estimate = − 0.35 ± 0.08, z = − 4.11, P < 0.0001; Fig. 3). Predator-exposed green toad tadpoles showed a significantly longer permanence time close to the larger group in comparison to controls for the numerical contrast 1 vs. 4 (estimate = 0.74 ± 0.34, z = 2.16, P = 0.03), while no significant effect of treatment or numerical combination was recorded for the permanence time of edible frog tadpoles close to the smaller group (Fig. 4).

Fig. 3
figure 3

Total number of crossed lines as a measure of tadpoles’ level of activity (mean ± SEM) for both species and all numerical contrasts. White dots represent the control group and black dots predator-exposed group

Fig. 4
figure 4

Permanence time (mean length of the time intervals) close to the larger group for green toad tadpoles and the smaller group for edible frog tadpoles. White dots represent the control group and black dots predator-exposed group (*P < 0.05)

Discussion

Group formation in tadpoles occurs in at least ten, distantly related families (Blaustein and Walls 1995; Wells 2007). Tadpoles likely use visual cues to locate conspecifics (Wassersug and Hessler 1971; Foster and McDiarmid 1982), nevertheless, to our knowledge, till now there has been no attempt to assess whether visual cues provide sufficient information to enable tadpoles to choose between aggregations differing in size. Our results suggest that in anuran larvae the capacity to discriminate between quantities may be limited to small numbers. Edible frog tadpoles showed to be more precise in group discrimination than green toad tadpoles, being able to discriminate among both 1 vs. 4 and 3 vs. 4 combinations. In contrast, tadpoles did not appear to discriminate more favourable ratios, such as 4 vs. 8 and 4 vs. 6. This appears puzzling in terms of the ANS which is supposed to be constrained by ratio of the numerosity to be discriminated. However, it has been hypothesized that number discrimination can be obtained, indirectly, by another, quite different mechanism, the Objects File System, which is not devoted to estimate quantity but is instead based on attention. In contrast to the ANS, this OFS would be precise but limited to sets in the range of one to about three–four items, because this is the limit of the number of objects that can be individuated and stored in working memory (Trick and Pylyshyn 1994; Uller et al. 1999; Feigenson et al. 2002). The existence of an OFS in non-human animals is controversial, though some evidence has been reported for both birds (Rugani et al. 2008) and fish (Agrillo et al. 2012).

As edible frog tadpoles had reached a later Gosner’s stage, the difference in species’ performances may depend on a mechanism that gradually develops during ontogeny, allowing more precise choices. Accordingly, adult frogs, although of different species (Bombina variegata and B. orientalis), are able to distinguish between larger groups (3 vs. 6 and 4 vs. 8; see Stancher et al. 2015; Vallortigara 2017), while forty-days-old guppies (Poecilia reticulata) can discriminate larger quantities than younger conspecifics (Bisazza et al. 2010), suggesting that the ANS may undergo some development during ontogeny and metamorphosis. The inability of tadpoles to discriminate between groups larger than four individuals is consistent with the apparently negligible effect of thinning on the responses of predator-exposed, large groups (N = 20) of tadpoles (Gazzola et al. 2018a, b).

Green toad tadpoles selected for the largest groups even in the absence of predator cues, which is consistent with the tendency to aggregate that has been widely reported for bufonids (Wells 2007). According to previous studies, the tadpoles of both species would markedly reduce their level of activity when exposed to predatory cues. However, toad tadpoles would also stay for longer close to the larger group, supporting aggregation as a major anti-predator behaviour in bufonids (see also Stav et al. 2007). Unexpectedly, frog tadpoles showed a preference for the smaller groups, though in predator-free trials only. Their preference may be explained considering how resource competition affects several fitness-related traits in ranids. For example, the impact of conspecific density on both the mass and development rate of Rana temporaria is more than double that of heterospecific density, while in Bufo bufo these impacts are similar (Gazzola and Van Buskirk 2015). Under predation risk, frog tadpoles were possibly exposed to contrasting urges—avoidance of competitors vs. anti-predatory aggregation—resulting in repeated switching between the two groups. Moreover, vulnerability to predation is size-dependent (Semlitsch 1990; Leu et al. 2013), tadpoles generally becoming abler to avoid predators, including cannibalistic conspecifics, as they grow up (Brown and Taylor 1995), supporting the adoption by edible frog tadpoles, which were much larger than green toad larvae, of a more swaggering behaviour with respect to predation risk. We made no attempt to unveil the mechanism underlying group discrimination. Several physical variables, such as total volume or surface area, covary with numerosity and may dominate the choice of focal tadpoles (Gómez-Laplaza and Gerlai 2013; Stancher et al. 2015). A recent work suggests that continuous physical variables rather than number underlies shoal size discrimination in fish (Xiong et al. 2018).

The level of activity, that is the amount of movements of group members, has been also reported as a visual stimulus steering group choice. In particular, adult salamanders of the genus Plethodon seem to respond on the basis of movement cues (Uller et al. 2003; Kruske et al. 2010). Anuran tadpoles change their level of activity according to the number of conspecifics, increasing their movements as groups get larger (Griffiths and Foster 1998; Cresswell et al. 2000; McClure et al. 2009). Thus, we cannot exclude a role of movement cues in group choice by focal tadpoles. On the other hand, using plastic containers we prevented focal tadpoles from assessing the numerosity of their conspecifics by water-borne chemical cues, which seem to play a major role in kin recognition and aggregation (Blaustein and O’Hara 1982). While visual cues proved sufficient to discriminate small groups, conspecifics’ cues may be involved in the choice between larger groups, a hypothesis that needs further research.